import React from 'react';
import { Router,Switch, Route } from 'dva/router';
import IndexPage from '../components/IndexPage';
import List from '../components/list';

function RouterConfig({ history }) {
  return (
    <Router history={history}>
      <div>
        <Route path="/" exact  component={IndexPage} />
        <Route path="/list" component={List} />
      </div>
    </Router>
  );
}

export default RouterConfig;
